package com.accp.demo.service.base;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.demo.mapper.base.ISupplierMapper;
import com.accp.demo.pojo.base.Supplier;

//供应商
@Service
public class SupplierService {
	
	@Autowired
	private ISupplierMapper supplierMapper;
	
	/**
	 * 新增供应商
	 * @param pojo
	 */
	public void insert(Supplier pojo){
		supplierMapper.insert(pojo);
	};
	
	/**
	 * 修改供应商
	 * @param pojo
	 */
	public void update(Supplier pojo){
		supplierMapper.update(pojo);
	};
	
	/**
	 * 删除供应商(修改逻辑状态)
	 * @param supplierNo
	 */
	public void delete(String supplierNo,Integer logicState){
		supplierMapper.delete(supplierNo, logicState);
	};
	
	/**
	 * 查询
	 * @return
	 */
	public List<Supplier> query(){
		return supplierMapper.query();
	};
	
}
